Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix for TagProperty Validation #155

Merged
merged 2 commits into from
Oct 15, 2024
Merged

fix: Fix for TagProperty Validation #155

merged 2 commits into from
Oct 15, 2024

Conversation

ammokhov
Copy link
Contributor

@ammokhov ammokhov commented Oct 1, 2024

Issue #, if available:

Description of changes:

TagProperty gets validated by ResourceTagging class via validateTaggingMetadata. This uses pointer defined inside tagging schema metadata and uses default definesProperty method by everit Schema object. However, CloudFormation uses /*/ notation to define array properties but everit library understands numerical index instead (e.g. 0).

PropertyDefinition Correct CFN Schema Notation Correct JSON Pointer
/properties/NestedTagProperty/TagSpecifications/*/Tags Yes No
/properties/NestedTagProperty/TagSpecifications/0/Tags No Yes

To pass validation, I replace all /*/ substrings with /0/ during validation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ammokhov ammokhov merged commit d46e05a into master Oct 15, 2024
1 check passed
@ammokhov ammokhov deleted the tagging-fix branch October 15, 2024 18:35
@ammokhov ammokhov changed the title [BugFix] Fix for TagProperty Validation fix: Fix for TagProperty Validation Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants